<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%-- <base href="<%=basePath%>"> --%>

<title>employee</title>

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<script type="text/javascript" src="<%=basePath%>js/employee.js"></script>
<script type="text/javascript" src="<%=basePath%>/jquery-1.8.0.min.js"></script>
</head>

<body>
	<!-- Alternative Content Box Start -->
	<div class="contentcontainer">
		<div class="headings altheading">
			<h2>员工</h2>
		</div>
		<div class="contentbox">
			<table width="100%">
				<thead>
					<tr>
						<th>员工编号</th>
						<th>姓名</th>
						<th>性别</th>
						<th>电话</th>
						<th>职位</th>
						<th>部门</th>
						<th>操作</th>
						<th><input name="" type="checkbox" value="" id="checkboxall" />
						</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${empList}" var="emp" varStatus="i">
						<c:choose>
							<c:when test="${(i.count) % 2 == 0}">
								<c:set var="rowclass" value="" />
							</c:when>
							<c:otherwise>
								<c:set var="rowclass" value="alt" />
							</c:otherwise>
						</c:choose>
						<tr class="${rowclass}">
							<td>${emp.userid}</td>
							<td>${emp.name}</td>
							<td>${emp.gender}</td>
							<td>${emp.tel}</td>
							<td>${emp.position}</td>
							<td>${emp.department_code}</td>
							<td><a href="javascript:void(0)" title=""><img
									src="img/icons/icon_edit.png" alt="Edit" /> </a> <a
								href="javascript:void(0)" title=""><img
									src="img/icons/icon_unapprove.png" alt="delete" /> </a></td>
							<td><input type="checkbox" value="" name="checkall" />
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<jsp:include page="splitPage.jsp"></jsp:include>
		</div>
	</div>

	<!-- Alternative Content Box End -->

</body>
</html>
